package com.lzh.media.feign;

import com.lzh.common.pojo.Result;
import com.lzh.core.feign.CoreFeign;
import com.lzh.media.entity.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lizuhu
 * @date 2021/6/26 1:51
 */
@FeignClient(name = "leadnews-media",path = "/wmUser")
public interface MediaUserFeign extends CoreFeign<WmUser> {
    /**
     * 创建自媒体账户
     */
//    @PostMapping("/save")
//    public Result insert(@RequestBody WmUser wmUser);
    /**
     * 根据id获取
     * @param id
     * @return
     */
    @GetMapping("/one")
    public WmUser getByUserId(@RequestParam(value = "id") Integer id);
}
